package com.xy.smartplatfrom.exceptions;

/**
 * projectName:smartplatfrom
 * author:xiaoyang
 * time:2021/12/27 22:17
 * description:
 */
public class MyBaseException extends RuntimeException {

   private int code;//状态码

    public MyBaseException(String message, int code) {
        super(message);
        this.code = code;
    }
    public  int getCode(){
        return code;
    }

}
